package com.fh.shop.api.exception;

import com.fh.shop.api.common.ResponseEnum;

public class StockException extends RuntimeException{

    private ResponseEnum responseEnum;

    private String params;

    //构造函数传参给私有属性赋值
    public StockException(ResponseEnum responseEnum,String params){
        this.responseEnum = responseEnum;
        this.params = params;
    }

    //get方法获取
    public ResponseEnum getResponseEnum() {
        return responseEnum;
    }

    public String getParams() {
        return params;
    }
}
